package main

import (
	"fmt"
	"github.com/robfig/cron/v3"
	"time"
)

func main() {
	c := cron.New()
	c.AddFunc("17 15 14 12 *", func() {
		now := time.Now()
		fmt.Println("执行任务")
		fmt.Println("当前时间是", now.Format("2006/01/02 15:04:06"))
	})
	c.Start()
	select {}

}
